package com.gexiaobao.pigeon.app.model.bean

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**
 * @Author      : hxw
 * @Date        : 2024/11/25 17:09
 * @Describe    :
 */
@Parcelize
data class AuctionGoodsDetailResponse(
    val addPriceRule: Int,//加价规则 1-固定加价 2-阶梯加价 3-2580规则 4-250规则 5-自定义
    val bondPercent: Int,//保证金比例
    val auctionId: Int,
    val customOverPrice: Int,//自定义加价超出区间的加价金额
    val customPrices: List<CustomPrice>,//自定义加价规则
    val endTime: String,//结束时间
    val feather: String,//羽色
    val goodDesc: String,//拍品介绍
    val goodId: Int,
    val goodName: String,
    val images: List<String>,
    val isFollow: Boolean,
    val isJoin: Boolean,
    val nextAddPrice: Int,//下一次加价幅度
    val preGoodId: Int,//上一羽商品id
    val nextGoodId: Int,//下一羽商品id
    val ringID: String,
    val shippingDesc: String,//运费介绍
    val startTime: String,
    val startingPrice: Int,//起拍价格
    val userPrice: Int,//展示价格
    val userPriceName: String,//用户名
    val userPriceTime: String,//用户最后一次出价时间
    val username: String,//鸽主名
    val proxyId: Int,//代理id
    val proxyStatus: Int,//代理状态 1-正常 2-已出局
    val t7lUrl: String,
    val userPriceId: Int,
    val bkVideoInfo: List<VideoInfoBean> = arrayListOf(),
    val gatherVideoInfo: List<VideoInfoBean> = arrayListOf(),
) : Parcelable {

    /**
     * 数据是否为空
     */
    fun isEmptyBk() = bkVideoInfo == null || (bkVideoInfo as List<*>).isEmpty()

    /**
     * 数据是否为空
     */
    fun isEmptyG() = gatherVideoInfo == null || (gatherVideoInfo as List<*>).isEmpty()

}

@Parcelize
data class VideoInfoBean(

    val cameraNo: String,
    val snapshot: String,
    val video: String,

    ) : Parcelable

@Parcelize
data class CustomPrice(
    val endPrice: Int,//终止价格
    val innerAddPrice: Int,//中间每次加价
    val startPrice: Int//起始价格
) : Parcelable